package com.audaque.springboot.foshanupload.web.esdatademo.repository;

/**
 * @author zgb
 * @desc ...
 * @date 2023-04-19 17:38:56
 */

import com.audaque.springboot.foshanupload.web.esdatademo.model.pojo.StudentPojo;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentRepository extends ElasticsearchRepository<StudentPojo, String> {

    //提示方法名SName,但是s是小写sName才可以
    List<StudentPojo> findStudentByName(String name);
    List<StudentPojo> findStudentByNameAndAddress(String name,String address);
}
